import request from '@/utils/request'

// 查询年度分数线列表
export function listGradeLine(query) {
  return request({
    url: '/system/gradeLine/list',
    method: 'get',
    params: query
  })
}

// 查询年度分数线详细
export function getGradeLine(id) {
  return request({
    url: '/system/gradeLine/' + id,
    method: 'get'
  })
}

// 新增年度分数线
export function addGradeLine(data) {
  return request({
    url: '/system/gradeLine',
    method: 'post',
    data: data
  })
}

// 修改年度分数线
export function updateGradeLine(data) {
  return request({
    url: '/system/gradeLine',
    method: 'put',
    data: data
  })
}

// 删除年度分数线
export function delGradeLine(id) {
  return request({
    url: '/system/gradeLine/' + id,
    method: 'delete'
  })
}
